package com.bss.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.andy.basics.Service;
import com.bss.model.MaterialType;
import com.bss.service.MaterialTypeService;

@Controller
@Scope("request")
public class MaterialTypeController extends com.andy.basics.Controller<MaterialType> {

	@Autowired
	private MaterialTypeService materialTypeService;

	@Override
	public Service<MaterialType> getService() {
		return materialTypeService;
	}

	public void setMaterialTypeService(MaterialTypeService materialTypeService) {
		this.materialTypeService = materialTypeService;
	}

	@Override
	public MaterialType create() {
		return new MaterialType();
	}

}
